package com.tutu.service;

import com.tutu.entity.vo.BaseCodeVo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * EmissionCodeService
 */
public interface EmissionCodeService {

    // 查询（分页）
    Map<String, Object> pageByParams(Integer type, String keyWord, Integer page, Integer limit);

    List<BaseCodeVo> findListByType(Integer type);

    List<BaseCodeVo> findListByDeviceId(Integer deviceId);

    // 添加 or 修改
    Map<String, Object> saveInfo(HttpServletRequest request, Integer id, Integer type, String content);

    // 删除
    Map<String, Object> deleteById(HttpServletRequest request, Integer id);

    // 批量删除
    Map<String, Object> batchDel(HttpServletRequest request, String ids);

    // 加载缓存数据
    void loadCacheData();
}
